<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>校园志愿者管理系统</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css" rel="stylesheet">
    <style>
        :root {
            --primary-color: #4361ee;
            --secondary-color: #3a0ca3;
            --accent-color: #4cc9f0;
            --success-color: #2ec4b6;
            --warning-color: #f72585;
            --light-bg: #f8f9fa;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f0f2f5;
            color: #333;
            min-height: 100vh;
        }

        .main-header {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 1rem 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .dashboard-container {
            padding: 30px 0;
        }

        .welcome-card {
            background: white;
            border-radius: 15px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            padding: 30px;
            margin-bottom: 30px;
            border: none;
            transition: transform 0.3s ease;
        }

        .welcome-card:hover {
            transform: translateY(-5px);
        }

        .welcome-card h2 {
            color: var(--primary-color);
            font-weight: 700;
        }

        .stats-container {
            margin-bottom: 30px;
        }

        .stat-card {
            background: white;
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            padding: 25px;
            text-align: center;
            border: none;
            transition: all 0.3s ease;
            height: 100%;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.1);
        }

        .stat-icon {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            font-size: 2rem;
        }

        .icon-blue {
            background: rgba(67, 97, 238, 0.15);
            color: var(--primary-color);
        }

        .icon-green {
            background: rgba(46, 196, 182, 0.15);
            color: var(--success-color);
        }

        .icon-purple {
            background: rgba(111, 50, 168, 0.15);
            color: var(--secondary-color);
        }

        .icon-pink {
            background: rgba(247, 37, 133, 0.15);
            color: var(--warning-color);
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            margin: 10px 0;
        }

        .stat-label {
            color: #6c757d;
            font-weight: 500;
        }

        .modules-container {
            margin-top: 30px;
        }

        .module-card {
            background: white;
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            padding: 25px;
            text-align: center;
            border: none;
            transition: all 0.3s ease;
            height: 100%;
            text-decoration: none;
            color: inherit;
        }

        .module-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
            color: inherit;
        }

        .module-icon {
            font-size: 3rem;
            margin-bottom: 20px;
            display: block;
        }

        .module-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 10px;
            color: #2c3e50;
        }

        .module-desc {
            color: #6c757d;
            font-size: 0.9rem;
        }

        .footer {
            background: #2c3e50;
            color: white;
            padding: 20px 0;
            margin-top: 40px;
        }

        .campus-decoration {
            position: absolute;
            opacity: 0.05;
            z-index: 0;
        }

        .decoration-1 {
            top: 10%;
            left: 5%;
            font-size: 8rem;
        }

        .decoration-2 {
            bottom: 10%;
            right: 5%;
            font-size: 6rem;
        }

        .header-content {
            position: relative;
            z-index: 1;
        }

        @media (max-width: 768px) {
            .stat-card, .module-card {
                margin-bottom: 20px;
            }
        }
    </style>
</head>
<body>
<!-- 装饰元素 -->
<div class="campus-decoration decoration-1">
    <i class="bi bi-mortarboard"></i>
</div>
<div class="campus-decoration decoration-2">
    <i class="bi bi-book"></i>
</div>

<!-- 头部 -->
<header class="main-header">
    <div class="container header-content">
        <div class="d-flex justify-content-between align-items-center">
            <div>
                <h1><i class="bi bi-people-fill me-2"></i>校园志愿者管理系统</h1>
                <p class="mb-0">连接爱心，服务校园</p>
            </div>
            <div>
                <button class="btn btn-light" onclick="location.href='login.html'">
                    <i class="bi bi-box-arrow-right me-1"></i>退出登录
                </button>
            </div>
        </div>
    </div>
</header>

<!-- 主内容区 -->
<div class="container dashboard-container">
    <!-- 欢迎卡片 -->
    <div class="card welcome-card">
        <div class="row align-items-center">
            <div class="col-md-8">
                <h2>欢迎使用校园志愿者管理系统</h2>
                <p class="lead">在这里您可以管理志愿者信息、活动报名、考勤记录等所有志愿服务相关事务。</p>
                <p>让我们一起为校园建设贡献力量！</p>
            </div>
            <div class="col-md-4 text-center">
                <i class="bi bi-emoji-smile" style="font-size: 5rem; color: var(--primary-color); opacity: 0.3;"></i>
            </div>
        </div>
    </div>

    <!-- 统计卡片 -->
    <div class="stats-container">
        <div class="row">
            <div class="col-md-3 col-6 mb-4">
                <div class="card stat-card">
                    <div class="stat-icon icon-blue">
                        <i class="bi bi-people"></i>
                    </div>
                    <div class="stat-number">1,248</div>
                    <div class="stat-label">注册志愿者</div>
                </div>
            </div>
            <div class="col-md-3 col-6 mb-4">
                <div class="card stat-card">
                    <div class="stat-icon icon-green">
                        <i class="bi bi-calendar-check"></i>
                    </div>
                    <div class="stat-number">86</div>
                    <div class="stat-label">进行中活动</div>
                </div>
            </div>
            <div class="col-md-3 col-6 mb-4">
                <div class="card stat-card">
                    <div class="stat-icon icon-purple">
                        <i class="bi bi-clock-history"></i>
                    </div>
                    <div class="stat-number">3,452</div>
                    <div class="stat-label">总服务时长</div>
                </div>
            </div>
            <div class="col-md-3 col-6 mb-4">
                <div class="card stat-card">
                    <div class="stat-icon icon-pink">
                        <i class="bi bi-award"></i>
                    </div>
                    <div class="stat-number">216</div>
                    <div class="stat-label">优秀志愿者</div>
                </div>
            </div>
        </div>
    </div>

    <!-- 功能模块 -->
    <div class="modules-container">
        <h3 class="mb-4"><i class="bi bi-grid me-2"></i>功能模块</h3>
        <div class="row">
            <div class="col-lg-3 col-md-6 mb-4">
                <a href="activity_enroll.html" class="card module-card">
                    <i class="bi bi-pencil-square module-icon text-primary"></i>
                    <h4 class="module-title">活动报名</h4>
                    <p class="module-desc">管理志愿者活动报名信息</p>
                </a>
            </div>
            <div class="col-lg-3 col-md-6 mb-4">
                <a href="activity_attendance.html" class="card module-card">
                    <i class="bi bi-calendar-check module-icon text-success"></i>
                    <h4 class="module-title">活动考勤</h4>
                    <p class="module-desc">查看和管理活动考勤记录</p>
                </a>
            </div>
            <div class="col-lg-3 col-md-6 mb-4">
                <a href="Volunteer_info.html" class="card module-card">
                    <i class="bi bi-person-badge module-icon text-info"></i>
                    <h4 class="module-title">志愿者信息</h4>
                    <p class="module-desc">管理志愿者个人信息</p>
                </a>
            </div>
            <div class="col-lg-3 col-md-6 mb-4">
                <a href="volunteerResum.html" class="card module-card">
                    <i class="bi bi-file-earmark-text module-icon text-warning"></i>
                    <h4 class="module-title">服务履历</h4>
                    <p class="module-desc">查看志愿者服务记录</p>
                </a>
            </div>
            <div class="col-lg-3 col-md-6 mb-4">
                <a href="notice.html" class="card module-card">
                    <i class="bi bi-megaphone module-icon text-danger"></i>
                    <h4 class="module-title">系统公告</h4>
                    <p class="module-desc">发布和管理系统公告</p>
                </a>
            </div>
            <div class="col-lg-3 col-md-6 mb-4">
                <a href="Hour_statistics.html" class="card module-card">
                    <i class="bi bi-bar-chart module-icon text-success"></i>
                    <h4 class="module-title">工时统计</h4>
                    <p class="module-desc">查看志愿服务时长统计</p>
                </a>
            </div>
            <div class="col-lg-3 col-md-6 mb-4">
                <a href="activity_type.html" class="card module-card">
                    <i class="bi bi-tags module-icon text-primary"></i>
                    <h4 class="module-title">活动分类</h4>
                    <p class="module-desc">管理活动类型分类</p>
                </a>
            </div>
            <div class="col-lg-3 col-md-6 mb-4">
                <a href="AI.html" class="card module-card">
                    <i class="bi bi-robot module-icon text-info"></i>
                    <h4 class="module-title">AI助手</h4>
                    <p class="module-desc">智能问答和辅助服务</p>
                </a>
            </div>
        </div>
    </div>
</div>

<!-- 页脚 -->
<footer class="footer">
    <div class="container text-center">
        <p class="mb-0">© 2023 校园志愿者管理系统 - 用心服务每一位志愿者</p>
        <p class="mb-0"><i class="bi bi-shield-lock me-1"></i>校园志愿服务一体化管理平台</p>
    </div>
</footer>

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script>
    // 页面加载完成后添加动画效果
    document.addEventListener('DOMContentLoaded', function() {
        // 添加页面加载动画
        document.body.style.opacity = '0';
        setTimeout(() => {
            document.body.style.transition = 'opacity 0.5s ease';
            document.body.style.opacity = '1';
        }, 100);
    });
</script>
</body>
</html>
